<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>teacher</title>
</head>
<body>

<form action="" method="post">
    {% csrf_token %}
{#    <input type="text" name="name">#}
{#    <input type="text" name="age">#}
        {{ teacher_form.as_p }}
{#    {% for field in teacher_form %}#}
{#        <div>#}
{#            <label for="id_{{ field.name }}">{{ field.label }}</label>#}
{#            {{ field }} <span>{{ field.errors.0 }}</span>#}
{#        </div>#}
{#    {% endfor %}#}

{#        {{ teacher_form.as_ul }}#}
{#    <table>#}
{#        {{ teacher_form.as_table }}#}
{#    </table>#}

    <input type="submit">
</form>

</body>
</html>